package com.woniu.p2p.behindService;

import com.github.pagehelper.PageInfo;
import com.woniu.p2p.entity.UserScore;

import java.util.Date;
import java.util.List;

/**
 * @author 86152
 * @create 2020/8/13
 * @since 1.0.0
 */
public interface BehindScoreService {
    /*条件查询*/
    PageInfo<UserScore> getscorebycons(String status, String keyword, Date starttime, Date endtime, Integer currentPage, int pagesize);
    /*查询所有*/
    List<UserScore> selectAll();
    /*根据id删除*/
    PageInfo<UserScore> deletebyid(String status, String keyword, Date starttime, Date endtime, Integer currentPage, int pagesize, Integer scoreId);
    /*根据id查询单个对象*/
    UserScore getscoredetailsbyid(Integer scoreId);
    /*查询所有的用户id*/
    List<Integer> getuseridlist();
    /*更新用户积分并添加积分变更记录*/
    int updatescoreinuserandinsertuserscore(Integer scoreAmount, Integer userId);
    /*批量删除*/
    int piliangdel(int[] ids);
}
